<%@ page import="org.w3c.dom.ls.LSOutput" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/25 0025
  Time: 11:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8"  language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
      <% int a= 0;
      int b=0;
      %>
  a+b=<%=a+b%>
<%!public  void run(){
  System.out.println("你是一个好人");
}
%>
      <%out.print("nizai哪里呀");%>
  <% run();%>
  <% request.setAttribute("a1","niaho");%>
  <%session.setAttribute("a1","hello");%>
  <%application.setAttribute("a1","nice");%>
  <%pageContext.setAttribute("a1","beautiful");%>
  request = <%=request.getAttribute("a1")%><!--结尾没有用分号,出结果用等号--->


  <%--<%@include file="test.jsp"%>--%>
  </body>

</html>
